package com.xx.entity;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

public class User implements Serializable {
    @Serial
    private static final long serialVersionUID = 3571414104434295670L;

    //用户ID
    private int id;

    //用户姓名
    private String name;

    //用户 年龄
    private int age;

    //用户生日
    private Date bir;

    //信息ID
    private int cardId;

    private Card card;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Date getBir() {
        return bir;
    }

    public void setBir(Date bir) {
        this.bir = bir;
    }

    public int getCardId() {
        return cardId;
    }

    public void setCardId(int cardId) {
        this.cardId = cardId;
    }

    public Card getCard() {
        return card;
    }

    public void setCard(Card card) {
        this.card = card;
    }
    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", bir=" + bir +
                ", cardId=" + cardId +
                '}';
    }
}
